Skip to content

Use make_shared in pricing engines#2636

Merged
lballabio merged 3 commits into
lballabio:masterfrom
jewonj0620:feature/use-make-shared-pricingengines
Jul 20, 2026
Merged

Use make_shared in pricing engines#2636
lballabio merged 3 commits into
lballabio:masterfrom
jewonj0620:feature/use-make-shared-pricingengines

Conversation

@jewonj0620

Copy link
Copy Markdown
Contributor

This PR replaces old-style ext::shared_ptr<T>(new ...) constructions with ext::make_shared<T>(...) under ql/pricingengines.

The change is intended as a mechanical modernization and follows the existing ext::make_shared usage in the codebase.

In addition, added some auto declaration when rhs and lhs return types are identical

@coveralls

coveralls commented Jun 21, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 74.936% (+0.09%) from 74.843% — jewonj0620:feature/use-make-shared-pricingengines into lballabio:master

@lballabio

Copy link
Copy Markdown
Owner

As we're going through this modernization, I think it's fair to use auto even when lhs and rhs are not the same. It's probably more convenient to do this now than to search for all these cases later. What do you think?

@jewonj0620

Copy link
Copy Markdown
Contributor Author

@lballabio

Okay. Sounds good to me. I will proceed to use auto instead of alias in declaration. I will apply the patch for this from this pr

Hope the review is not confused. will notify after the update!

@jewonj0620

Copy link
Copy Markdown
Contributor Author

@lballabio sorry for being late. apply auto declaration for changes please feel free to leave a comment!

@lballabio
lballabio merged commit 7493db9 into lballabio:master Jul 20, 2026
50 of 51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants